package exercise_2;

import java.awt.Graphics;
import javax.swing.JPanel;

public class Shapes extends JPanel
{
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		for(int i=1;i<=12;i++)
		{
			int height=getHeight();
			int width=getWidth();
			g.drawOval(height/2-i*10, width/2-i*10, i*20, i*20);
		}
	}
}